<template>
    <div>
        <el-tabs :model-value="active" class="tabs-demo" @tab-click="handleClick">
        <el-tab-pane v-for="(item, index) in menu" :key="item.type" :label="item.label"></el-tab-pane>
    </el-tabs>
    </div>
</template>

<script>
export default {
  props: {
    handleClick: {
      type: Function,
      default: () => {
        return {}
      }
    },
    active: {
      type: [Number, String],
      default: 0
    },
    menu: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  data() {
    return {

    }
  },
  methods: {

  }
}
</script>
